package com.atguigu.vod.utils;

import com.aliyuncs.DefaultAcsClient;
import com.aliyuncs.profile.DefaultProfile;

public class InitVodClient {

    public static final DefaultAcsClient initVodClient(String accessKeyId,
                                                       String accessKeySecret) {

        String regionId = "cn-shanghai";

        DefaultProfile profile = DefaultProfile.getProfile(regionId, accessKeyId, accessKeySecret);

        DefaultAcsClient client = new DefaultAcsClient(profile);

        return  client;

    }
}
